
<%@ page import="infomap.Zona; infomap.Servicio; infomap.Usuario" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'usuario.label', default: 'Usuario')}" />
        <title><g:message code="default.edit.label" args="[entityName]" /> | <g:message code="default.title" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1>Elija las zonas que frecuenta</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${usuarioInstance}">
            <div class="errors">
                <g:renderErrors bean="${usuarioInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
              <!--<fieldset>-->
                <g:hiddenField name="id" value="${usuarioInstance?.id}" />
                <g:hiddenField name="version" value="${usuarioInstance?.version}" />
                <div class="listacheck">
                    <ul>
                        <g:each in="${Zona.list()}" var="zona" status="i">
                            <li class="fieldbox"><input type="checkbox" name="zonas" value="${zona.id}" ${zonasContenidos[i]}> ${zona.nombre} </li>
                        </g:each>
                        <div class="breakspace"></div>
                    </ul>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="Actualizar" /></span>
                </div>
              <!--</fieldset>-->
            </g:form>
        </div>
    </body>
</html>
